package com.tecode.bean;


import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class Admin {
    private Integer adminid;
    private String adminname;
    private String password;
    private Code code;
    private int freeze;

    public int getFreeze() {
        return freeze;
    }

    public void setFreeze(int freeze) {
        this.freeze = freeze;
    }

    public Admin(Integer adminid, String adminname, String password, Code code, int freeze) {
        this.adminid = adminid;
        this.adminname = adminname;
        this.password = password;
        this.code = code;
        this.freeze = freeze;
    }

    public Admin() {
    }

    public Admin(String adminname, String password) {
        this.adminname = adminname;
        this.password = password;
    }


    public Integer getAdminid() {
        return adminid;
    }

    public void setAdminid(Integer adminid) {
        this.adminid = adminid;
    }

    public String getAdminname() {
        return adminname;
    }

    public void setAdminname(String adminname) {
        this.adminname = adminname == null ? null : adminname.trim();
    }

    public Code getCode() {
        return code;
    }

    public void setCode(Code code) {
        this.code = code;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "adminid=" + adminid +
                ", adminname='" + adminname + '\'' +
                ", password='" + password + '\'' +
                ", code=" + code +
                ", freeze=" + freeze +
                '}';
    }
}